﻿using Ivory;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Schism.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Schism.Mapping
{
    [Serializable]
    public sealed class StoneCell : CellBase
    {
        public override bool IsWalkable
        {
            get { return false; }
        }

        //ctor
        public StoneCell(DungeonPos pos)
             : base(pos)
        {

        }

        //Methods
        protected override void DrawCell(SpriteBatch batch, GameTime time)
        {
            batch.Draw(TileBank.GetTile((int)CellConverterEnum.Stone), new Rectangle(
                    (int)(MapPosition.WorldPosition.X - ObjectHolder.GameCamera.CameraTopLeft.X),
                    (int)(MapPosition.WorldPosition.Y - ObjectHolder.GameCamera.CameraTopLeft.Y),
                    Globals.GLOBAL_TILE_WIDTH, Globals.GLOBAL_TILE_HEIGHT), Color.White);
        }
        protected override void SolveCell(InputControl control, GameTime time)
        {

        }
    }
}
